﻿@section header
    {
    <link rel="stylesheet" href="/css/treetable.css" />
    <link rel="stylesheet" href="/js/dtree/dtree.css" />
    <link rel="stylesheet" href="/js/dtree/font/dtreefont.css" />
}

    <div class="layui-row">
        <blockquote class="layui-elem-quote news_search toolList layui-col-xs6" id="menus">
        </blockquote>
        <div class="demotable toolList layui-col-xs6">
            外协单位名称：
            <div class="layui-inline">
                <input class="layui-input" name="SourceName" id="SourceName" autocomplete="off">
            </div>
            手机号：
            <div class="layui-inline">
                <input class="layui-input" name="Phone" id="Phone" autocomplete="off">
            </div>
            <button class="layui-btn" data-type="search">搜索</button>
        </div>
    </div>
    <div class="layui-row">
        <table class="layui-table"
           lay-data="{height: 'full-5', page:true, id:'mainList'}"
           lay-filter="list" lay-size="sm">
            <thead>
                <tr>
                    <th lay-data="{checkbox:true, fixed: true}"></th>
                    <th lay-data="{field:'VehicleModel', width:200}">厂牌型号</th>
                    <th lay-data="{field:'PlateNumber', width:150}">车牌号</th>
                    <th lay-data="{field:'Name', width:150, templet:'#Disable'}">司机姓名</th>
                    <th lay-data="{field:'Company', width:200}">所属公司</th>
                    <th lay-data="{field:'Lengths', width:150}">车型(长*宽*高)</th>
                    <th lay-data="{field:'VehicleColor', width:150}">车辆颜色</th>
                    <th lay-data="{field:'AcquisitionDate', width:150}">购置日期</th>
                    <th lay-data="{field:'OperationNumber', width:150}">营运证号</th>
                    <th lay-data="{field:'DurationInsurance', width:150}">保险到期时间</th>
                    <th lay-data="{field:'ExpirationYear', width:150}">年检到期时间</th>
                    <th lay-data="{field:'Maintain', width:150}">保养公里设置</th>
                    <th lay-data="{field:'caoz', width:150}">操作</th>
                </tr>
            </thead>
        </table>
    </div>
    <!--用户添加/编辑窗口-->
    <div id="divEdit" style="display: none">

        <form class="layui-form layui-form-pane" action="" id="formEdit">

            <input type="hidden" name="Id" v-model="tmp.Id" />
            <div class="layui-form-item">
                <label class="layui-form-label">厂牌型号</label>
                <div class="layui-input-block">
                    <input type="text" name="VehicleModel" v-model="tmp.VehicleModel" required lay-verify="required"
                       placeholder="请输入厂牌型号" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">车牌号</label>
                <div class="layui-input-block">
                    <input type="text" name="PlateNumber" v-model="tmp.PlateNumber" required lay-verify="required"
                       placeholder="请输入车牌号" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">司机姓名</label>
                <div class="layui-input-block">
                    <input type="text" name="Name" v-model="tmp.Name" required lay-verify="required"
                       placeholder="请输入司机姓名" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">所属公司</label>
                <div class="layui-input-block">
                    <input type="text" name="Company" v-model="tmp.Company" required lay-verify="required"
                       placeholder="请输入所属公司" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">车型</label>
                <div class="layui-input-block">
                    <input type="text" name="Lengths" v-model="tmp.Lengths" required lay-verify="required"
                       placeholder="长" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-input-block">
                    <input type="text" name="Widths" v-model="tmp.Widths" required lay-verify="required"
                       placeholder="宽" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-input-block">
                    <input type="text" name="Heights" v-model="tmp.Heights" required lay-verify="required"
                       placeholder="高" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">车辆颜色</label>
                <div class="layui-input-block">
                    <input type="text" name="VehicleColor" v-model="tmp.VehicleColor" required lay-verify="required"
                       placeholder="请输入车辆颜色" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">购置日期</label>
                <div class="layui-input-block">
                    <input type="text" name="AcquisitionDate" v-model="tmp.AcquisitionDate"
                       placeholder="请输入购置日期" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">营运证号</label>
                <div class="layui-input-block">
                    <input type="text" name="OperationNumber" v-model="tmp.OperationNumber"
                       placeholder="请输入营运证号" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">保险到期日期</label>
                <div class="layui-input-block">
                    <input type="text" name="DurationInsurance" v-model="tmp.DurationInsurance"
                       placeholder="请输入保险到期日期" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">年检到期日期</label>
                <div class="layui-input-block">
                    <input type="text" name="ExpirationYear" v-model="tmp.ExpirationYear"
                       placeholder="请输入年检到期日期" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">保养公里数设置</label>
                <div class="layui-input-block">
                    <input type="text" name="Maintain" v-model="tmp.Maintain"
                       placeholder="请输入保养公里数" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">车辆照片</label>
                <div class="layui-input-block">
                    <input type="text" name="VehiclePhotos" v-model="tmp.VehiclePhotos" required lay-verify="required"
                       placeholder="请输入车辆照片url" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">保险卡照片</label>
                <div class="layui-input-block">
                    <input type="text" name="InsuranceCardPhoto" v-model="tmp.InsuranceCardPhoto" required lay-verify="required"
                       placeholder="请输入保险卡照片url" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formSubmit">立即提交</button>
                    <button type="reset" id="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>

    <script type="text/javascript" src="/layui/layui.js"></script>
    <script type="text/javascript" src="/userJs/TmsVehicle.js?v=3.2.1"></script>

